#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>

void quicksort(int* p, int l, int r) {
    if (l >= r)
        return;
    int i = l - 1, j = r + 1;
    int x = p[i + j >> 1];
    while (i < j) {
        do i++; while (p[i] < x);
        do j--; while (p[j] > x);
        if (i < j) {
            int tmp = p[i];
            p[i] = p[j];
            p[j] = tmp;
        }
    }
    quicksort(p, l, j);
    quicksort(p, j + 1, r);
}
int main() {
    int arr[100000];
    int n;
    scanf("%d", &n);
    for (int i = 0; i < n; i++) {
        scanf("%d", arr + i);
    }
    quicksort(arr, 0, n - 1);
    for (int i = 0; i < n; i++) {
        printf("%d ", arr[i]);
    }
}